import 'dart:convert';

import 'package:flutter/material.dart';


void main() {
  runApp(MaterialApp(home: const SecondScreen()));
}

class SecondScreen extends StatelessWidget {
  const SecondScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Second Screen'),
      ),
      body:
      Text.rich(
        TextSpan(
          children: [
            TextSpan(
              text: 'This is a ',
              style: TextStyle(color: Colors.black, fontSize: 10),
            ),
            TextSpan(
              text: 'colored',
              style: TextStyle(color: Colors.blue, fontSize: 10, fontWeight: FontWeight.bold),
            ),
            TextSpan(
              text: ' text example.',
              style: TextStyle(color: Colors.green, fontSize: 20),
            ),
          ],
        ),
      ),
    );
  }
}
